package com.blog.pojo;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

public class User {

    private int id;
    private String username;
    private String password;
    private String phone;
    private Integer followeeCount;    // 被关注的人数
    private LocalDateTime createdAt;
    private Integer fanCount;//粉丝
    private Integer experiencePoints;
    public User() {}
    public User(int id, String username, String password, String phone, Integer followeeCount, LocalDateTime createdAt, Integer fanCount) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.followeeCount = followeeCount;
        this.createdAt = createdAt;
        this.fanCount = fanCount;
    }

    public User(int id, String username, String password, String phone, LocalDateTime createdAt) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.createdAt = createdAt;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getFolloweeCount() {
        return followeeCount;
    }

    public void setFolloweeCount(Integer followeeCount) {
        this.followeeCount = followeeCount;
    }

    public Integer getFanCount() {
        return fanCount;
    }

    public void setFanCount(Integer fanCount) {
        this.fanCount = fanCount;
    }

    public Integer getExperiencePoints() {
        return experiencePoints;
    }

    public void setExperiencePoints(Integer experiencePoints) {
        this.experiencePoints = experiencePoints;
    }
}
